﻿@model  IEnumerable<DealKhuyenMaiV2.com.Models.Product>
@{
    ViewBag.Title = "AllDeal";
    Layout = "~/Views/Shared/_MemberGuestLayout.cshtml";
}


<!DOCTYPE html>
<html>
    <head>
        <link href="@Url.Content("/Content/DefaultThemes/Styles/AllDeal.css")" rel="stylesheet" type="text/css" />
    </head>

<body>
    <div class="body-left">
        <!--Unknown-->
        <!-- UPD 27.10.3 -->
        <div class="middle-box-white">
            <div class="middle-box-title">
                <div class="left">
                    <h3>
                        <span class="middle-size">Các deal đã đăng</span>
                    </h3>
                </div>
                <div class="clear"></div>
            </div>
               
            <div class="middle-box-content">
                <div class="deal">
                    <div class="table_deal">
                        <table class="table_title">
                            <tbody>
                                <tr>
                                    <td class="deal_name">
                                        <div class="title"><span>Deal</span></div>
                                    </td>
                                    <td class="day_start">
                                        <div class="title"><span>Ngày đăng</span></div>
                                    </td>
                                    <td class="day_end">
                                        <div class="title"><span>Ngày hết hạn</span></div>
                                    </td>                    	                       
                                </tr>
                            </tbody>
                        </table>
                        <div >
                            <table class="table_content">
                                <tbody>
                                    @foreach (var deal in Model)
                                    {
                                        <tr>
                                        
                                            <td class="deal_name">
                                                <div class="content" style="color: blue">
                                                    <a href="@Url.Action("AllOrder", "Company", new {productID = deal.IDProduct})" style="color: orangered;"><strong>@deal.NameProduct</strong></a> 
                                                </div>
                                            </td>
                                            <td class="day_start">
                                                <div class="content">
                                                    @deal.Date_start
                                                </div>
                                            </td>
                                            <td class="day_end">
                                                <div class="content">
                                                    @deal.Date_end
                                               
                                                </div>
                                            </td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div>
                        
                    </div>

                </div>
                
                <p>
                    *Click vào tên deal để xem chi tiết.
                </p>
            </div>

        </div>
</div>
</body>

</html>
